package com.quick.develop.flowable.domain.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.flowable.common.engine.impl.db.SuspensionState;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author junyuan.liu
 * @description: TODO
 * @date 2022/7/5 15:07
 */
@ApiModel("管理后台 - 流程模型更新状态 Request VO")
@Data
public class BpmModelUpdateStateReqVO implements Serializable {

    private static final long serialVersionUID = 7025542416540294881L;
    
    @ApiModelProperty(value = "模型编号", required = true)
    @NotNull(message = "模型编号不能为空")
    private String id;

    @ApiModelProperty(value = "状态", required = true, example = "1", notes = "见 SuspensionState 枚举")
    @NotNull(message = "状态不能为空")
    private Integer state;
    
    /**
     * {@link SuspensionState}
     */
    @ApiModelProperty(value = "流程实例状态", required = true, notes = "运行的流程实例是否挂起")
    @NotNull(message = "运行实例是否挂起不能为空")
    private boolean suspendProcessInstances;
    
    
}
